package com.esunrising.esungsc.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.*;


@ApiModel(description = "数据接口配置")
@EqualsAndHashCode
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "SYS_API_URL")
public class SysApiUrl {

    /**
    * 主键
    */
    @Id
    @ApiModelProperty("主键")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sys_api_url_seq")
    @SequenceGenerator(name = "sys_api_url_seq", sequenceName = "SYS_API_URL_SEQ", initialValue = 1, allocationSize = 1)
    @Column(name = "ID")
    private Long id;

    /**
    * 配置名称
    */
    @ApiModelProperty("配置名称")
    @Column(name = "CONFIG_NAME")
    private String configName;

    /**
    * 唯一标识
    */
    @ApiModelProperty("唯一标识")
    @Column(name = "CONFIG_KEY")
    private String configKey;

    /**
    * 配置值
    */
    @ApiModelProperty("配置值")
    @Column(name = "CONFIG_VALUE")
    private String configValue;

    /**
    * 首次调用时间
    */
    @ApiModelProperty("首次调用时间")
    @Column(name = "SDATE")
    private String sdate;

    /**
     * 最后调用时间
     */
    @ApiModelProperty("最后调用时间")
    @Column(name = "EDATE")
    private String edate;


}